package org.jsola.hr.dto.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SocDispatchEmpLessExample.E_FUND_END_DATE;
import static org.jsola.hr.example.SocDispatchEmpLessExample.E_ID_CARD;
import static org.jsola.hr.example.SocDispatchEmpLessExample.E_NAME;
import static org.jsola.hr.example.SocDispatchEmpLessExample.E_PHONE;
import static org.jsola.hr.example.SocDispatchEmpLessExample.E_QUIT_DATE;
import static org.jsola.hr.example.SocDispatchEmpLessExample.E_REASON_QUIT;
import static org.jsola.hr.example.SocDispatchEmpLessExample.E_SOC_END_DATE;
import static org.jsola.hr.example.SocDispatchEmpLessExample.M_ID_CARD_MAX;
import static org.jsola.hr.example.SocDispatchEmpLessExample.M_ID_CARD_NOT_NULL;
import static org.jsola.hr.example.SocDispatchEmpLessExample.M_NAME_MAX;
import static org.jsola.hr.example.SocDispatchEmpLessExample.M_NAME_NOT_NULL;
import static org.jsola.hr.example.SocDispatchEmpLessExample.M_PHONE_MAX;
import static org.jsola.hr.example.SocDispatchEmpLessExample.M_REASON_QUIT_MAX;
import static org.jsola.hr.example.SocDispatchEmpLessExample.N_FUND_END_DATE;
import static org.jsola.hr.example.SocDispatchEmpLessExample.N_ID_CARD;
import static org.jsola.hr.example.SocDispatchEmpLessExample.N_NAME;
import static org.jsola.hr.example.SocDispatchEmpLessExample.N_PHONE;
import static org.jsola.hr.example.SocDispatchEmpLessExample.N_QUIT_DATE;
import static org.jsola.hr.example.SocDispatchEmpLessExample.N_REASON_QUIT;
import static org.jsola.hr.example.SocDispatchEmpLessExample.N_SOC_END_DATE;

/**
 *【社保派单员工表_减员】excel导入对象
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "【社保派单员工表_减员】excel导入对象")
public class SocDispatchEmpLessImportDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, required = true)
    @NotNull(message = M_NAME_NOT_NULL)
    @Length(max = 50, message = M_NAME_MAX)
    @ExcelProperty(value = N_NAME)
    private String name;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE)
    @Length(max = 20, message = M_PHONE_MAX)
    @ExcelProperty(value = N_PHONE)
    private String phone;

    @ApiModelProperty(notes = N_ID_CARD, example = E_ID_CARD, required = true)
    @NotNull(message = M_ID_CARD_NOT_NULL)
    @Length(max = 32, message = M_ID_CARD_MAX)
    @ExcelProperty(value = N_ID_CARD)
    private String idCard;

    @ApiModelProperty(notes = N_SOC_END_DATE, example = E_SOC_END_DATE)
    @ExcelProperty(value = N_SOC_END_DATE)
    private Date socEndDate;

    @ApiModelProperty(notes = N_FUND_END_DATE, example = E_FUND_END_DATE)
    @ExcelProperty(value = N_FUND_END_DATE)
    private Date fundEndDate;

}

